package com.testfileupload.uploadimg.design.strategy.enums;

public class Client {
    public static void main(String[] args) {
        int exec = Calculator.ADD.exec(1, 2);
        Calculator[] values = Calculator.values();
        for (int i = 0; i < values.length; i++) {
            System.out.println(values[i].value);
            System.out.println(values[i].getValue());
            System.out.println(values[i].name());
            if (values[i].name().equals("ADD")) {
                System.out.println("包含add");
            }
        }
        System.out.println(exec);
    }
}
